package com.zdlog.wenjuan.dao;

import com.zdlog.wenjuan.dataobject.ProblemDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @program: wenjuanSer
 * @PACKAGE_NAME: com.zdlog.wenjuan.dao
 * @author: Kuaile
 * @create: 2018-02-03 22:40
 **/
public interface ProblemDetailRepository extends JpaRepository<ProblemDetail, String> {

    List<ProblemDetail> findByMainProblemIdOrderBySerialNumberAsc(String MainProblemId);

    ProblemDetail findByProblemDetailId(String problemId);


}
